package net.ericaro.neojavagen.expressions ;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;

import net.ericaro.neojavagen.expressions.AndExpression ;

import net.ericaro.neojavagen.StringUtils;
		
/**
* <pre> ExclusiveOrExpression :  AndExpression ^ AndExpression ^ ...  
*/
public class ExclusiveOrExpression extends ArrayList<AndExpression>  {
	
	public ExclusiveOrExpression(){
		super();
	}
	
	public ExclusiveOrExpression(AndExpression ... components){
		this(Arrays.asList(components) );
	}
	public ExclusiveOrExpression(Collection<AndExpression> values ){
		super(values);
	}
	
	
	public String toString(){
		return StringUtils.toString(this, "^", "", "");
	}

}
